<template>
	<view class="woo">
		<view class="message_top">
			<view class="message_top_title" :style="{top:computedTop}">核销确认</view>
			<view class="message_top_back" :style="{top:computedTop}" @click="Back">
				<image src="../../static/search/back.png" class="bfbimages"></image>
			</view>
		</view>

		<view class="woo_box">
			<view class="woo_box_src flex">
				<image src="../../static/logo.png" class="bfbimages"></image>
			</view>
			<view class="woo_box_title">周杰伦</view>
			<view class="woo_box_ID">ID:123654789</view>


			<view class="woo_box_juan flex">
				<image src="../../static/yhj.png" class="bfbimages"></image>
			</view>

			<view class="woo_box_btn" @click="HeXiao">确认核销</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				menuButtonInfo: null,
			}
		},
		computed: {
			computedTop() {
				if (this.menuButtonInfo) {
					return `${this.menuButtonInfo.height * 2 - 6}px`;
				}
				return '0px';
			},
		},
		onLoad() {
			const info = uni.getMenuButtonBoundingClientRect();
			this.menuButtonInfo = info;
		},
		methods: {
			HeXiao() {
				uni.navigateTo({
					url: '/pages/WriteOff/WriteOff_Success'
				})
			}
		}
	}
</script>

<style lang="scss">
	.woo {
		width: 100vw;
		height: 100vh;
		float: left;
		background-color: #F6F8FB;
	}

	.message_top {
		width: 100%;
		height: 200rpx;
		position: relative;

		.message_top_title {
			width: 100%;
			text-align: center;
			font-family: PingFang SC, PingFang SC;
			font-weight: bold;
			font-size: 36rpx;
			color: #333333;
			position: absolute;
			left: 0;
			z-index: 2;
		}

		.message_top_back {
			width: 44rpx;
			height: 44rpx;
			position: absolute;
			left: 30rpx;
			z-index: 9;
		}
	}

	.woo_box {
		width: 100%;
		height: calc(100vh - 200rpx);
		background-color: #FFFFFF;

		.woo_box_src {
			width: 108rpx;
			height: 108rpx;
			border-radius: 50%;
			background-color: green;
			overflow: hidden;
			margin: 120rpx auto 0;
		}

		.woo_box_title,
		.woo_box_ID {
			width: 100%;
			height: auto;
			text-align: center;
			margin: 10rpx auto 0;
			font-family: PingFang SC, PingFang SC;
			font-weight: bold;
			font-size: 34rpx;
			color: #333333;
		}

		.woo_box_ID {
			font-weight: 500;
			font-size: 28rpx;
			color: #FE4624;
		}

		.woo_box_juan {
			width: 640rpx;
			height: 238rpx;
			margin: 60rpx auto 0;
			text-align: center;
			line-height: 238rpx;
		}

		.woo_box_btn {
			width: 500rpx;
			height: 100rpx;
			background: linear-gradient(270deg, #FE4624 0%, #FF8143 100%);
			border-radius: 50rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: bold;
			font-size: 32rpx;
			color: #FFFFFF;
			text-align: center;
			line-height: 100rpx;
			margin: 160rpx auto 0;
		}
	}
</style>